﻿<navigation:Page 
    x:Class="PermDoc.Settings" 
    mc:Ignorable="d"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    d:DesignWidth="1024"
    d:DesignHeight="768"
    VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"
    Title="Settings Page" Loaded="Page_Loaded" Unloaded="Page_Unloaded" MouseMove="Page_MouseMove">

    <Grid x:Name="LayoutRoot" 
          Loaded="LayoutRoot_Loaded" 
          Unloaded="LayoutRoot_Unloaded">

        <Grid.ColumnDefinitions>
            <ColumnDefinition MinWidth="380" MaxWidth="350" Width="350" />
            <ColumnDefinition MinWidth="80" MaxWidth="100" Width="80" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition MinWidth="10" MaxWidth="10" Width="10" />
            <ColumnDefinition Width="1*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition/>
        </Grid.RowDefinitions>
        
        <CheckBox 
            Name="oInvalidateNightCheckBox"
            Content="Обновлять архивные данные только в ночное время." 
            Height="16" Margin="4,2,0,0" Grid.ColumnSpan="1"
            HorizontalAlignment="Right" VerticalAlignment="Center" 
            IsEnabled="False"  
            Checked="oInvalidateNightCheckBox_Checked" 
            Unchecked="oInvalidateNightCheckBox_Unchecked" />

        <sdk:Label 
            Name="oLblMontCount"
            Grid.Row="1" Grid.ColumnSpan="1" 
            Content="Загружать данные не более чем за указанное кол-во месяцев : "
            Height="28" Margin="0,3,0,0"
            HorizontalAlignment="Right" VerticalAlignment="Top" />
        
        <ComboBox 
            Name="oMonthCount"
            Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="1"
            Height="23" Width="55"
            HorizontalAlignment="Left" VerticalAlignment="Top" SelectionChanged="oMonthCount_SelectionChanged">
            <ComboBoxItem Content="3" />
            <ComboBoxItem Content="6" />
            <ComboBoxItem Content="8" />
            <ComboBoxItem Content="12" />
            <ComboBoxItem Content="16" />
        </ComboBox>
        
    </Grid>
    
</navigation:Page>
